package com.ez.supervise.model.biz;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.ez.supervise.model.base.BaseEntity;

public class File extends BaseEntity {
 
	private static final long serialVersionUID = -6714455223499438869L;
	private Long orgId;//文件的组织id
	private String folder;//  文件类型(与文件存放的路径来区分)
	private String title;//信息标题
	private String filePath;//文件的路径
	private String memo;//备注
	private String status;//
	
	public static final String FOLDER_NOTICE = "notice";//公告文件
	public static final String FOLDER_METHOD = "method";//考核办法 
	public static final String FOLDER_DETAIL = "detail";//考核细则
	public static final String FOLDER_OTHER = "other";//其它 
	public static final String STATUS_DRAFT = "draft";//draft：草稿
	public static final String STATUS_ISSUE = "issue";//issue：发布
	public static Map<String, String> folderMap = new HashMap<String, String>();
	
	static {
	    folderMap.put(FOLDER_NOTICE, "公告文件");
	    folderMap.put(FOLDER_METHOD, "考核办法");
	    folderMap.put(FOLDER_DETAIL, "考核细则");
	    folderMap.put(FOLDER_OTHER, "其它");
	    folderMap = Collections.unmodifiableMap(folderMap);
	}
	
	public static Map<String, String> getFolderMap() {
	    return folderMap;
	}
	public Long getOrgId() {
		return orgId;
	}
	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}
	
	public String getFolder() {
	    return folder;
	}
	public void setFolder(String folder) {
	    this.folder = folder;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	 
	public String getFilePath() {
	    return filePath;
	}
	public void setFilePath(String filePath) {
	    this.filePath = filePath;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStatus() {
		return status;
	}
}
